Setting up S3 access from JupyterLab

Complete the following steps to provide access to Amazon S3 from JupyterLab.

  1. Log in to Tech Stack AWS account where JupyterLab is deployed on an EC2 instance and add assume role permission.

    Copy
    arn:aws:iam::<AWSAccount>:role/techstack-instance-role
    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Sid": "VisualEditor0",
                "Effect": "Allow",
                "Action": "sts:AssumeRole",
                "Resource": "*"
            }
        ]
    }

STSAssumeRole

  1. Sign in to the AWS cross account where S3 bucket exists.

  2. Create a new role, for example: lazsa-jupyterlab-s3.

  3. Assign the AmazonS3FullAccess policy to the role.

    AmazonS3FullAccess